package com.mall.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 售后信息
 * </p>
 *
 * @author itlxc
 * @since 2024-04-28
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("after_sales")
@ApiModel(value="AfterSales对象", description="售后信息")
public class AfterSales implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 售后类型 1.仅退款2.退货退款3.换货
     */
    public static final Integer REFUND_ONLY = 1;
    public static final Integer RETURNS_AND_REFUNDS = 2;
    public static final Integer EXCHANGE = 3;

    /**
     * 售后状态 1待处理2同意3拒绝
     */
    public static final Integer PENDING_PROCESSING = 1;
    public static final Integer AGREE = 2;
    public static final Integer REFUSE = 3;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "商品id")
    private Long goodId;

    @ApiModelProperty(value = "售后状态")
    private Integer status;

    @ApiModelProperty(value = "售后原因")
    private String refundReason;

    @ApiModelProperty(value = "商品个数")
    private Integer goodNumber;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "售后类型")
    private Integer type;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
